﻿<%@ Page Title="" Language="C#" MasterPageFile="Site.Master" AutoEventWireup="true" CodeBehind="Browse.aspx.cs" Inherits="eoTest.RRBrowse" %>

<%@ Register assembly="EO.Web" namespace="EO.Web" tagprefix="eo" %>

<asp:Content ID="browseHead" ContentPlaceHolderID="pageHead" runat="server">
</asp:Content>

<asp:Content ID="browseContent" ContentPlaceHolderID="pageContent" runat="server">
	<script type="text/javascript">
		/*
		function leftsplitter_resize_handler(splitter) {
			var w = splitter.getLeftPane().getWidth();
			var h = splitter.getLeftPane().getHeight();

			//Resize the TreeView
			var treeView = eo_GetObject("FolderTree");
			if (treeView)
				treeView.setSize(w - 10, h - 36);
		}

		function rightsplitter_resize_handler(splitter) {
			AdjustFilePaneLayout();

			var w = splitter.getRightPane().getWidth();
			var h = splitter.getRightPane().getHeight();
			h -= 26;

			//Resize the Preview Panel
			if ((w > 0) && (h > 0))
				eo_GetObject("<%= fileBrowserSplitter.ClientID %>").setPreviewRegionSize(w, h);
		}

		function AdjustFilePaneLayout() {
			var splitter = eo_GetObject("RightSplitter");
			var uploader = eo_GetObject("FileUploader");

			var w = splitter.getLeftPane().getWidth();
			var h = splitter.getLeftPane().getHeight();

			h -= 26;
			if (uploader && uploader.isRunning())
				h -= 55;

			//Resize the Grid
			var grid = eo_GetObject("FileGrid");
			if (grid)
				grid.setSize(w, h);

			//Resize the uploader
			if (uploader)
				uploader.setWidth(w);
		}*/
		/*
		function upload_begin() {
			//Display the uploader progress bar and progress text
			document.getElementById("uploader_div").style.display = "block";
			AdjustFilePaneLayout();
		}

		function upload_done() {
			//Hide the uploader progress bar and progress text
			document.getElementById("uploader_div").style.display = "none";
			AdjustFilePaneLayout();
		}*/
	</script>
	<eo:Splitter ID="fileBrowserSplitter" runat="server" Height="500px" Width="700px" ControlSkinID="None"
                    BorderStyle="Solid" BorderWidth="1px" BorderColor="#A0A0A0" DividerImage="00080411"
                    DividerSize="10" DividerCenterImage="00080412" ClientSideOnResized="leftsplitter_resize_handler">
		<eo:SplitterPane ID="fileBrowserTreePane" runat="server" Height="500px" Width="400px" ScrollBars="None">
			<eo:TreeView ID="fileBrowserTree" runat="server" Style="padding-right: 5px; padding-left: 5px; padding-bottom: 5px; padding-top: 5px" Height="100%" Width="100%" ControlSkinID="None">
                            <LookNodes>
                                <eo:TreeNode ImageUrl="00030301" DisabledStyle-CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;color:Gray;padding-bottom:1px;padding-left:1px;padding-right:1px;padding-top:1px;"
                                    CollapsedImageUrl="00030301" ItemID="_Default" NormalStyle-CssText="PADDING-RIGHT: 1px; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; COLOR: black; BORDER-TOP-STYLE: none; PADDING-TOP: 1px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BACKGROUND-COLOR: transparent; BORDER-BOTTOM-STYLE: none"
                                    ExpandedImageUrl="00030302" SelectedStyle-CssText="background-color:#316ac5;border-bottom-color:#999999;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#999999;border-left-style:solid;border-left-width:1px;border-right-color:#999999;border-right-style:solid;border-right-width:1px;border-top-color:#999999;border-top-style:solid;border-top-width:1px;color:White;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;">
                                </eo:TreeNode>
                            </LookNodes>
                            <TopGroup Style-CssText="background-color:white;color:black;cursor:hand;font-family:Tahoma;font-size:8pt;">
								<%--Bindings>
									<eo:DataBinding Property="Value" DataField="fileID|fileName" Depth="0" />
									<eo:DataBinding Property="Value" DataField="fileName" Depth="1" />
									<eo:DataBinding Property="Value" DataField="fileName" Depth="2" />
								</Bindings--%>
                                <Nodes>
                                </Nodes>
                            </TopGroup>
			</eo:TreeView>
		</eo:SplitterPane>
		<eo:SplitterPane ID="fileBrowserGridPane" runat="server">
			<%--eo:Grid ID="fileBrowserGrid" runat="server">
			</eo:Grid--%>
		</eo:SplitterPane>
	</eo:Splitter>
	<div class="browserDetailDiv">
	</div>
</asp:Content>